package cz.muni.fi.pa165.dao;

import cz.muni.fi.pa165.entity.Package;
import java.util.List;
/**
 * PackageDAO interface
 * @author Jakub Janco
 */
public interface PackageDAO {
    
    /**
     * Remove package from database
     * @param pkg 
     * @throws IllegalArgumentException if parameter is null the id attribute is null
     */
    public void removePackage(Package pkg);
    
    /**
     * Return package by his ID
     * @param id Id of package to search
     * @throws IllegalArgumentException if parameter is null
     * @return Package with given ID, null if package with given ID is not in database
     */
    public Package getPackageById(Long id);
    
}
